//
//  OpenGLES1Renderer.h
//  TestGameEngine
//
//  Created by Louis CHU on 21/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "IGraphicRenderer.h"
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>

@protocol OpenGLES1RendererDelegate
- (void) renderInOpenGLES1;
@end

@interface OpenGLES1Renderer : NSObject<IGraphicRenderer>
{
@private
	EAGLContext *context;
	
	// The pixel dimensions of the CAEAGLLayer
	GLint backingWidth;
	GLint backingHeight;
	
	// The OpenGL names for the framebuffer and renderbuffer used to render to this view
	GLuint defaultFramebuffer, colorRenderbuffer;
}
//@property (nonatomic, unsafe_unretained) id<OpenGLES1RendererDelegate> delegate;
//- (BOOL)resizeFromLayer:(CAEAGLLayer*)layer;
@end
